<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

	<h:inputHidden value="#{atendenteARSBean.atendenteARS.id}" />
	<h:panelGrid columns="3">
		<h:outputLabel value="Nome:" for="atendenteARS" />
		<h:inputText id="atendenteARS" required="true"
			requiredMessage="obrigatorio" value="#{atendenteARSBean.atendenteARS.nome}">
		</h:inputText>
		<h:message for="atendenteARS" />

		<h:outputLabel value="Senha:" for="senha" />
		<h:inputText id="senha" required="true" requiredMessage="obrigatorio"
			value="#{atendenteARSBean.atendenteARS.senha}">
		</h:inputText>
		<h:message for="senha" />

		<h:outputLabel value="CPF:" for="cpf" />
		<h:inputText id="cpf" required="true" requiredMessage="obrigatorio"
			value="#{atendenteARSBean.atendenteARS.cpf}">
		</h:inputText>
		<h:message for="cpf" />

		<h:outputLabel value="Telefone:" for="telefone" />
		<h:inputText id="telefone" required="true"
			requiredMessage="obrigatorio"
			value="#{atendenteARSBean.atendenteARS.telefone}">
		</h:inputText>
		<h:message for="telefone"/>

		<h:outputLabel value="Endereço:" for="endereco" />
		<h:inputText id="endereco" required="true"
			requiredMessage="obrigatorio"
			value="#{atendenteARSBean.atendenteARS.endereco}">
		</h:inputText>
		<h:message for="endereco" />

		 <h:commandButton value="Cadastrar" >
			<f:ajax event="click" execute="@form" listener="#{atendenteARSBean.add}"
				render="@all" />
		</h:commandButton>
		
		<h:commandButton value="Atualizar">
			<f:ajax event="click" render="Tabela" />
		</h:commandButton>
	 
	</h:panelGrid>
</ui:composition>
